<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #box {
            width: 200px;
            height: 200px;
            background: red;
            color: #fff;
            font-size: 30px;
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <script>
        document.addEventListener("touchstart", function (ev) {
            ev.preventDefault();
        });
        /**
        当手机触摸元素，当前屏幕上有两根或者两根以上的手指执行
        */
        window.onload = function () {
            var box = document.querySelector("#box");
            box.addEventListener("gesturestart", function (e) {
                // this.style.background = "blue";
                alert("hello");
            });
        }
    </script>
</body>

</html>